package demo.service;

import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface SimpleFileService {
    /**
     * 上传文件
     *
     * @param file
     */
    String upload(MultipartFile file);

    /**
     * 下载文件
     *
     * @param uuid
     * @throws IOException
     */
    ResponseEntity download(String uuid) throws IOException;

    /**
     * 获取文件元数据
     *
     * @param uuid
     */
    String getFileInfo(String uuid);
}
